package com.yuhuofei2021.spring.boot.weather.service.implement;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import com.yuhuofei2021.spring.boot.weather.entity.Weather;
import com.yuhuofei2021.spring.boot.weather.entity.WeatherResponse;
import com.yuhuofei2021.spring.boot.weather.service.WeatherDataService;
import com.yuhuofei2021.spring.boot.weather.service.WeatherReportService;

/**
 * @description 
 * @author yuhuofei2021
 * @date 2021年9月21日
 */
@Service
public class WeatherReportServiceImplement implements WeatherReportService{

	@Resource
	private WeatherDataService weatherDataServie;
	
	@Override
	public Weather getDataByCityId(String cityId) {
		WeatherResponse resp = weatherDataServie.getDataByCityId(cityId);
		return resp.getData();
	}
}
